﻿@inject IStringLocalizer<Tabs> Localizer

<Tab IsBorderCard="true">
    <TabItem Text="@Localizer["TabItem8Text"]">
        <Counter></Counter>
    </TabItem>
    <TabItem Text="@Localizer["TabItem9Text"]">
        <FetchData></FetchData>
    </TabItem>
    <TabItem Text="@TabItemText">
        <DemoTabItem OnSetTitle="@OnSetTitle" />
    </TabItem>
</Tab>

@code {
    private string TabItemText { get; set; } = "Test";

    private Task OnSetTitle(string text)
    {
        TabItemText = text;
        StateHasChanged();
        return Task.CompletedTask;
    }
}
